package com.juyu.miliao.api.controller;

import com.juyu.miliao.api.domain.OfficialUser;
import com.juyu.miliao.api.service.OfficialUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 官方账号
 */
@RestController
@RequestMapping("official")
public class OfficialUserController {
    @Resource
    private OfficialUserService officialUserService;


    @GetMapping("/user")
    public List<OfficialUser> getOfficialUserList(){
        return officialUserService.getOfficialUserList();
    }
}
